export function timeUnit(val) {
    let unit = ""
    switch (val) {
        case 'min':
            unit = "分钟"
            break;
        case 'hour':
            unit = "时"
            break;
        case 'day':
            unit = "天"
            break;
        default:
            break;
    }
    return unit
}

export function ruleStatusFilter(val) {
    let status = "";
    switch (val) {
        case 0:
            status = "启用"
            break;
        case 1:
            status = "停用"
            break;
        default:
            break;
    }
    return status
}

export function alarmStatusFilter(val) {
    let status = "";
    switch (val) {
        case 0:
            status = "待处理"
            break;
        case 1:
            status = "处理中"
            break;
        case 2:
            status = "已处理"
            break;
        case 3:
            status = "已关闭"
            break;
        default:
            break;
    }
    return status
}